﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace WindowsFormsApp3
{
    /// <summary>
    /// 血条类
    /// </summary>
    class Blood
    {
        public Rectangle Rectangle { get; set; }

        public Blood(Rectangle rectangle)
        {
            //初始化
            Rectangle = rectangle;
        }

        /// <summary>
        /// 绘图
        /// </summary>
        /// <param name="g"></param>
        public void Draw(Graphics g)
        {
            g.DrawImage(Properties.Resources.Blood, Rectangle);
        }

    }
}
